package com.example.demo.common.domain;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Auther Created by l.wang on 2019/4/4.
 */
@Data
@Accessors(chain = true)
public class ChannelRead {

    private String finger;

    private String code;

    private String msg;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ChannelRead)) return false;

        ChannelRead that = (ChannelRead) o;

        if (finger != null ? !finger.equals(that.finger) : that.finger != null) return false;
        if (!code.equals(that.code)) return false;
        return msg.equals(that.msg);
    }

    @Override
    public int hashCode() {
        int result = finger != null ? finger.hashCode() : 0;
        result = 31 * result + code.hashCode();
        result = 31 * result + msg.hashCode();
        return result;
    }
}
